using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using NTTHAO.Web.BL.Authentication;

public partial class admin_webparts_Plug_ins_User2_ActivateUser : System.Web.UI.UserControl
{
    public User _User = null;

    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            _User = new User(Request.QueryString["user"]);
            if (_User.ID < 1)
            {
                _User = null;
            }
        }
        catch { }
    }

    public void btnSave_Click(object sender, EventArgs e)
    {
        try
        {
            if (!chkActive.Checked)
            {
                return;
            }

            _User.StatusID = UserStatus.ACTIVATED;
            _User.Update();
        }
        catch { }
    }
}
